import http from "@/config/request";

/** 获取所有的相册 */
export const getAllAlbum = () => {
    return new Promise((resolve, reject) => {
        http.get("/cms/app-site-album/page?pageSize=-1", {}).then((res) => {
            resolve(res);
        });
    });
};

/** 获取相册内的图片 */
export const getAllPhotosByAlbumId = (id) => {
    return new Promise((resolve, reject) => {
        http.get(`/cms/app-site-album-photo/page?pageSize=-1&albumId=${id}`, {}).then((res) => {
            resolve(res);
        });
    });
};
